package cn.lucky.core;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class SimpleIOCDemo {

    //保存bean定义的map ，只要添加了注解的类，都会保存到这个map中
    private Map<String, BeanDefinition> beanDefinitionMap = new ConcurrentHashMap<>();
    // 保存bean实例map
    private Map<String, Object> singletonObjects = new ConcurrentHashMap<>();

    public SimpleIOCDemo(){

    }
    public SimpleIOCDemo(String basePackage) throws Exception{
        ClassScanner scanner = new ClassScanner();
        // 获得根包下面的所有类对象
        List<Class<?>> classes = scanner.findClasses(basePackage);

        // 处理类对象是否可以添加到这两个map中去
    }
}
